
var ProManHome = new Object();

ProManHome.createView = function() {
	var homeView = new WindView();
	
	var layoutView = WindLayout.createView();
	homeView.addView(layoutView);
	
	var rowView = layoutView.createRowView();
	
	{
		var cellView = rowView.createCellView();

		var actionsView = ProManHome.createActionsView();
		cellView.addView(actionsView);
	}
	
	{
		var cellView = rowView.createCellView();

		var panelModel = new WindPanelModel();
		panelModel.setTitle("News")
		var panelView = WindPanel.createView(panelModel);
		cellView.addView(panelView);

		var postsView = WindPosts.createView();
		cellView.addView(postsView);
	}
	
	return homeView;
}

ProManHome.createActionsView = function(model) {
	var actionsModel = new WindPanelModel();
	actionsModel.addTextEntry("News")
	actionsModel.addSeparator();
	actionsModel.addTextEntry("Messages")
	actionsModel.addSeparator();
	actionsModel.addTextEntry("Users")
	actionsModel.addSeparator();
	actionsModel.addTextEntry("Groups");

	var actionsView = WindPanel.createView(actionsModel);
	actionsView.setId("Home_Actions");
	return actionsView;
}